ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV Mobile 2024 feature!
This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / 
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Generates a request to pin a quick action.
When an action is pinned, an icon is created on the home screen and allows users to perform that action with a single tap. This can be useful for frequently used actions or functionalities that require direct access.
Remark: This feature is only available from Android 8 onwards.
Example
arrAction is array of QuickAction = QuickActionList()
FOR EACH action OF arrAction
IF action.Identifier = "ACTION_ID_SEND_MESSAGE" THEN
action.Pin()
END
END
Syntax

Pinning a quick action using a QuickAction variable Hide the details

<Result> = <Action>.Pin()
<Result>: Boolean
  • True if the action was added,
  • False otherwise. ErrorInfo returns the details of the error.
Caution: The function will return even if the user refuses the request.
<Action>: QuickAction variable
QuickAction variable describing the action to be pinned. The quick action must already have been added to the application to be pinned.
Remarks
  • The function opens a dialog box requesting authorization to add a shortcut to the home screen.
  • The quick action must already have been added to the application to be pinned.
  • This function should be called when the application is in the foreground. It is not recommended to call it in the application initialization events.
Business / UI classification: UI Code
Component: wd290android.aar
Minimum version required
  • Version 2024
Comments
Click [Add] to post a comment

Last update: 04/10/2024

Send a report | Local help